package com.azh.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@Slf4j
@RestController
public class OrderController {
    private  static final String invoke_url = "http://cloud-provider-payment";
    @Resource
    private RestTemplate restTemplate;
    @RequestMapping("/consumer/payment/zk")
    public String getInvoke_urlInfo(){
        String result =  restTemplate.getForObject(invoke_url+"/payment/zk",String.class);
        return result;
    }

}
